package com.ruoyi.know.service;

import com.ruoyi.know.domain.UserLikes;

import java.util.List;

/**
 * 用户点赞Service接口
 *
 * @author ruoyi
 * @date 2025-02-05
 */
public interface IUserLikesService
{
    /**
     * 查询用户点赞
     *
     * @param likeId 用户点赞主键
     * @return 用户点赞
     */
    public UserLikes selectUserLikesByLikeId(Long likeId);

    /**
     * 查询用户点赞列表
     *
     * @param userLikes 用户点赞
     * @return 用户点赞集合
     */
    public List<UserLikes> selectUserLikesList(UserLikes userLikes);

    /**
     * 新增用户点赞
     *
     * @param userLikes 用户点赞
     * @return 结果
     */
    public int insertUserLikes(UserLikes userLikes);

    /**
     * 修改用户点赞
     *
     * @param userLikes 用户点赞
     * @return 结果
     */
    public int updateUserLikes(UserLikes userLikes);

    /**
     * 批量删除用户点赞
     *
     * @param likeIds 需要删除的用户点赞主键集合
     * @return 结果
     */
    public int deleteUserLikesByLikeIds(Long[] likeIds);

    /**
     * 删除用户点赞信息
     *
     * @param likeId 用户点赞主键
     * @return 结果
     */
    public int deleteUserLikesByLikeId(Long likeId);

    /**
     * 获取点赞数量
     * @param userLikes
     * @return
     */
    public int getCountByLikes(UserLikes userLikes);

    /**
     * 取消点赞
     * @param userLikes
     * @return
     */
    public int deleteUserLikesByUserLikes(UserLikes userLikes);
}
